home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
wb
/
printmanager39
/
prtmanupd
/
install
< prev
next >
Wrap
Text File
|
1999-06-14
|
2KB
|
87 lines
;--- localize strings ----
(if (= @language "deutsch")
(
(set #askdir_prompt "Wo ist der PrintManager installiert?")
(set #wrongver "Sie benötigen v39.25 des Programms für das Update!")
(set #patcherr "Kann Update nicht durchführen!")
)
(
(set #askdir_prompt "Where is PrintManager installed?")
(set #wrongver "I need v39.25 of PrtMan to perform the update!")
(set #patcherr "Update operation failed!")
)
)
;--- get prtman drawer ---
(if (not (exists "SYS:WBStartup/PrintManager") )
(
(set @default-dest
(askdir
(prompt #askdir_prompt)
(help @askdir-help)
(default "SYS:WBStartup")
)
)
)
(
(set @default-dest "SYS:WBStartup")
)
)
(set #progpath (tackon @default-dest "PrintManager"))
;--- check version ---
(set #vernum (getversion #progpath ))
(set #ver (/ #vernum 65536))
(set #rev (- #vernum (* #ver 65536)))
(if(< #rev 25)
(abort #wrongver)
)
(if(>= #rev 26)
(abort #wrongver)
)
;--- patch ---
(set #cmd
(cat "gpatch " #progpath " 3926.gp t:PrintManager")
)
(set #err
(run #cmd
)
)
(if (> #err 0)
(abort #patcherr)
)
(copyfiles
(help @copyfiles-help)
(source "t:PrintManager")
(dest @default-dest)
)
(delete "t:PrintManager")
;--- copy new catalogs ---
(if (= @language "srpski")
(copyfiles
(help @copyfiles-help)
(source "catalogs/srpski/printmanager.catalog")
(dest "LOCALE:catalogs/srpski")
)
)
(if (= @language "polski")
(copyfiles
(help @copyfiles-help)
(source "catalogs/polski/printmanager.catalog")
(dest "LOCALE:catalogs/polski")
)
)
;--- eof ---